/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
let url = `https://${window.location.hostname}`
const safetyRegulationsRouter = {
  path: '/safetyRegulations',
  component: Layout,
  redirect: '/safetyRegulations/baseline',
  name: 'safetyRegulations',
  permission: '安全规则',
  meta: {
    permission: '安全规则',
    title: '安全规则',
    icon: 'lock', 
  },
  children: [
    {
      path: 'baseline',
      name: 'baseline',
      permission: '基线核查',
      component: () => import('@/views/safetyRegulations/baseline'),
      meta: { title: '基线核查', icon: 'dian', permission: '基线核查' }
    },
    {
      path: 'illegalPort',
      name: 'illegalPort',
      permission: '非法端口',
      component: () => import('@/views/safetyRegulations/illegalPort'),
      meta: { title: '非法端口', icon: 'dian', permission: '非法端口' }
    },
    {
      path: 'processControl',
      name: 'processControl',
      permission: '进程管控',
      component: () => import('@/views/safetyRegulations/processControl'),
      meta: { title: '进程管控', icon: 'dian', permission: '进程管控' }
    },
    // {
    //   path: `${url}:9080/kingsoft.html`,
    //   name: 'King',
    //   permission: '终端安全管理',
    //   // component: () => import('@/views/safetyRegulations/King'),
    //   meta: { title: '终端安全管理', icon: 'dian', permission: '终端安全管理' }
    // },
    // {
    //   path: `${url}:9090/nsfocus.html`,
    //   name: 'green',
    //   permission: '终端接入管理',
    //   // component: () => import('@/views/safetyRegulations/green'),
    //   meta: { title: '终端接入管理', icon: 'dian', permission: '终端接入管理' }
    // },
    // {
    //   path: 'clientGroup',
    //   name: 'clientGroup',
    //   component: () => import('@/views/safetyRegulations/clientGroup'),
    //   meta: { title: '客户分组', icon: 'dian' }
    // },
  ]
}

export default safetyRegulationsRouter
